package com.ruoyi.consume.service;

import java.util.List;
import com.ruoyi.consume.domain.PesticideApplyCon;

/**
 * 农药领用Service接口
 *
 * @author ruoyi
 * @date 2021-07-23
 */
public interface IPesticideApplyConService
{
    /**
     * 查询农药领用
     *
     * @param pesticideApplyId 农药领用ID
     * @return 农药领用
     */
    public PesticideApplyCon selectPesticideApplyById(Long pesticideApplyId);

    /**
     * 查询农药领用列表
     *
     * @param pesticideApplyCon 农药领用
     * @return 农药领用集合
     */
    public List<PesticideApplyCon> selectPesticideApplyList(PesticideApplyCon pesticideApplyCon);

    /**
     * 新增农药领用
     *
     * @param pesticideApplyCon 农药领用
     * @return 结果
     */
    public int insertPesticideApply(PesticideApplyCon pesticideApplyCon);

    /**
     * 修改农药领用
     *
     * @param pesticideApplyCon 农药领用
     * @return 结果
     */
    public int updatePesticideApply(PesticideApplyCon pesticideApplyCon);

    /**
     * 批量删除农药领用
     *
     * @param pesticideApplyIds 需要删除的农药领用ID
     * @return 结果
     */
    public int deletePesticideApplyByIds(Long[] pesticideApplyIds);

    /**
     * 删除农药领用信息
     *
     * @param pesticideApplyId 农药领用ID
     * @return 结果
     */
    public int deletePesticideApplyById(Long pesticideApplyId);

    /**
     * 更新库存量表
     *
     * @param pesticideApplyCon 农药领用ID
     * @return 结果
     */
    public int updatePesticideAmount(PesticideApplyCon pesticideApplyCon);

    /**
     * 更新领用状态
     *
     * @param pesticideApplyId 农药领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long pesticideApplyId);

    /**
     * 退回操作
     *
     * @param pesticideApplyId 农药领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long pesticideApplyId);
}
